package com.ouc.mapper;

import com.ouc.entity.Order;
import com.ouc.vo.OutOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Name: OrderMapper
 * @Description:
 * @Author: Mr.Tong
 */
@Repository
@Mapper
public interface OrderMapper {
    public Boolean insert(Order order);

    public List<OutOrder> getAllOrdersByUserId(Integer userId);

    public List<OutOrder> getAllOrders(Integer userId);


}
